//
//  YMBaseNavViewController.m
//  PCR
//
//  Created by shumei on 16/6/3.
//  Copyright © 2016年 shumei. All rights reserved.
//

#import "YMBaseNavViewController.h"

@interface YMBaseNavViewController ()

@end

@implementation YMBaseNavViewController

- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleDefault;
}

- (void)viewDidLoad {
    [super viewDidLoad];

    self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
    self.navigationBar.barTintColor                  = Nav_BgColor;
    [self.navigationBar setBackgroundImage:[YMTool ChangeUIColorToUIImage:[YMTool colorWithHexString:main_color]]
                             forBarMetrics:UIBarMetricsCompact];
    //设置为no导航栏不会有模糊效果，并且获取的物理尺寸包括导航栏和状态栏的高度,零点坐标是从导航栏下部开始计算
    [self.navigationBar setTranslucent:NO];
    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
